The CRPEngine class is designed so that there should only be one CRPEngine object in the entire application. The CRPEngine class contains methods that are common to all print jobs (that is, SQL connections, version information, etc.). More importantly, it is responsible for creating and managing all CRPEJob objects. It is the CRPEJob object that allows you access to the attributes of a print job.
In order to open a particular report it is first necessary to have an open Crystal Report Engine object in the application. You may then call CRPEngine::OpenJob, specifying the report file name to open. If successful, you will be returned a pointer to a CRPEJob object.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |